package com.ftf.tp.blog.application.dto.message;

import com.ftf.tp.blog.domain.article.event.BaseDomainEvent;
import com.ftf.tp.blog.application.dto.message.domain.ActionDO;
import com.ftf.tp.common.constants.DomainEventEnum;
import com.ftf.tp.common.constants.EventStatusEnum;
import com.ftf.tp.common.core.utils.SnowIdUtils;

import java.time.LocalDateTime;

/**
 * 点赞事件
 *
 * @author tanghao
 * @date 2021/11/28
 */
public class SupportMessage extends BaseDomainEvent<ActionDO> {

    public SupportMessage(ActionDO actionDO) {
        super(SnowIdUtils.uniqueLong(),
                actionDO.getId(),
                DomainEventEnum.ARTICLE_PUBLISH,
                EventStatusEnum.PENDING,
                LocalDateTime.now(),
                actionDO);
    }

}
